home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Canadian & World Encyclopedia 1998
/
The Canadian & World Encyclopedia 1998 - Disc 2.iso
/
mac
/
prime_CD
/
pb
/
basecast.cst
/
00083_Script_eras functions
< prev
next >
Wrap
Text File
|
1997-07-24
|
2KB
|
36 lines
on trackButton altMember, theCastLib -- produces standard button behaviour
if voidP(theCastLib) then set theCastLib = "internal"
-- set altMemberName = the memberNum of cast altMember
put the clickOn into theSpriteNumber
put the memberNum of sprite theSpriteNumber into baseMember
repeat while the mouseDown
if rollover(theSpriteNumber) then
set the memberNum of sprite theSpriteNumber to the number of member altMember of castlib theCastLib
else set the memberNum of sprite theSpriteNumber to the membernum of member baseMember of castlib theCastLib
updateStage
end repeat
return rollover(theSpriteNumber)
end
on dirFileForEraCode eraCode -- returns platform-specific filename for next era movie
-- set pctestmode = 1
-- select path separator
-- or pctestmode
if the machinetype <> 256 then set pathSep = ":"
else set pathSep = "\"
-- set new director movie filename
set head = the moviepath
-- set head = "D:\PB\ERAS\TY\"
delete the last char of head
set theItemDelimiter = the itemdelimiter
set the itemdelimiter = pathSep
if the movie contains "ERA_" then delete the last item of head
else put pathsep & "eras" after head -- test in case of other movies
if the movie contains "era_top.dir" then put pathsep & "eras" after head -- kf 97/3/7
set nextEraMovieName = head & pathSep & eraCode & pathSep & "ERA_" & eraCode & ".DIR"
-- alert nextEraMovieName -- debug *&*
set the itemdelimiter = theitemdelimiter
return nextEraMovieName
end